package org.dromara.cms.domain.vo;

import org.dromara.cms.domain.CmsModelField;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * CMS扩展字段视图对象 cms_model_field
 *
 * @author Spring
 * @date 2024-12-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CmsModelField.class)
public class CmsModelFieldVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 字段ID
     */
    @ExcelProperty(value = "字段ID")
    private Long id;

    /**
     * 字段名称
     */
    @ExcelProperty(value = "字段名称")
    private String fieldName;

    /**
     * 字段标识
     */
    @ExcelProperty(value = "字段标识")
    private String fieldKey;

    /**
     * 字段类型(text/textarea/number/date/select/radio/checkbox/image/file)
     */
    @ExcelProperty(value = "字段类型(text/textarea/number/date/select/radio/checkbox/image/file)")
    private String fieldType;

    /**
     * 默认值
     */
    @ExcelProperty(value = "默认值")
    private String defaultValue;



    /**
     * 是否必填(0否 1是)
     */
    @ExcelProperty(value = "是否必填(0否 1是)")
    private Long required;

    /**
     * 应用模型(article/page/category)
     */
    @ExcelProperty(value = "应用模型(article/page/category)")
    private String modelType;

    /**
     * 排序号
     */
    @ExcelProperty(value = "排序号")
    private Long sort;

    /**
     * 输入提示
     */
    @ExcelProperty(value = "输入提示")
    private String placeholder;

    /**
     * 验证规则
     */
    @ExcelProperty(value = "验证规则")
    private String validateRule;

    /**
     * 状态(0正常 1停用)
     */
    @ExcelProperty(value = "状态(0正常 1停用)")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
